<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>学校成绩报告单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://mirror.fe80.cn/limonte-sweetalert2/11.11.0/sweetalert2.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        a{
            text-decoration: none;
        }

        .container {
            max-width: 1200px;
            width: 90%;
            margin: 50px auto;
            padding: 30px;
            background-color: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        @media (min-width: 1200px) {
            .container {
                width: 60%;
            }
        }

        .tabs {
            display: flex;
            gap: 10px;
            text-align: center;
        }

        .tab {
            flex: 1;
            padding: 15px 20px;
            background-color: #e9ecef;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            color: #495057;
            transition: all 0.3s ease;
        }

        .tab.active {
            background-color: #0d6efd;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .tab:hover {
            background-color: #064ab0;
        }

        .tab-content {
            display: none;
            padding: 25px;
            background-color: white;
            border-radius: 10px;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        h2 {
            color: #212529;
            margin-bottom: 15px;
        }

        p {
            color: #6c757d;
            line-height: 1.6;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 表格容器 */
        .table-container {
            overflow-x: auto;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .student-table th,
            .student-table td {
                padding: 12px 14px;
                font-size: 14px;
            }
        }

        /* 新增样式：输入密码部分 */
        .input-password {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .input-password input {
            flex: 1;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 8px;
            font-size: 16px;
            outline: none;
        }

        .input-password input:focus {
            border-color: #0d6efd; /* 设置聚焦时的边框颜色 */
            box-shadow: 0 0 5px rgba(13, 111, 253, 0.5); /* 可选：添加聚焦时的阴影效果 */
        }

        .input-password button {
            padding: 10px 20px;
            background-color: #0d6efd;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .input-password button:hover {
            background-color: #064ab0;
        }

        /* 隐藏菜单内容 */
        .show-menu {
            display: none;
        }
        .show-menu h3{
            line-height: 60px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div style="height: 60px;text-align: center;">
            <h2>考试成绩报告单</h2>
        </div>
        <!-- 输入密码和确认按钮 -->
        <div class="input-password">
            <input type="password" id="passwordInput" placeholder="请输入密码">
            <button id="confirmButton">确认</button>
        </div>
        <!-- 默认隐藏的菜单内容 -->
        <div class="show-menu" id="menuContent">
            <h3>2025年秋季学期</h3>
            <div class="tabs">
                <a class="tab active" href="data-2025-21-7.html" target="_blank">七年级</a>
                <a class="tab active" href="data-2025-11-8.html" target="_blank">八年级</a>
                <a class="tab active" href="data-2025-21-9.html" target="_blank">九年级</a>
            </div>
            <h3>2025年春季学期</h3>
            <div class="tabs">
                <a class="tab active" href="data-2025-11-7.html" target="_blank">七年级</a>
                <a class="tab active" href="data-2025-11-8.html" target="_blank">八年级</a>
            </div>
            <div class="tabs">
                <a class="tab active" href="data-2025-1.html" target="_blank">一模</a>
                <a class="tab active" href="data-2025-2-9.html" target="_blank">二模</a>
                <a class="tab active" href="data-2025-3-9.html" target="_blank">三模（州一）</a>
                <a class="tab active" href="data-2025-2-7.html" target="_blank">七年级半期</a>
                <a class="tab active" href="data-2025-2-8.html" target="_blank">八年级半期</a>
            </div>
            <h3>2024年秋季学期</h3>
            <div class="tabs">
                <a class="tab active" href="data-2024-7.html" target="_blank">2024年秋七年级成绩分析</a>
                <a class="tab active" href="data-2024-8.html" target="_blank">2024年秋八年级成绩分析</a>
            </div>
            <h3>PPT版本的成绩报告单</h3>
            <div class="tabs">
                <a class="tab active" href="page.html" target="_blank">2024年秋七年级成绩分析</a>
            </div>
        </div>
    </div>
</body>
<script src="https://mirror.fe80.cn/limonte-sweetalert2/11.11.0/sweetalert2.min.js"></script>
<script>
// 获取DOM元素
const passwordInput = document.getElementById('passwordInput');
const confirmButton = document.getElementById('confirmButton');
const menuContent = document.getElementById('menuContent');

// 定义正确的密码
const correctPassword = window.atob('TXpNMk16TTI=');
// 定义验证密码的函数
function validatePassword() {
    const enteredPassword = passwordInput.value;
    if (enteredPassword === window.atob(correctPassword)) {
        // 显示菜单内容
        menuContent.style.display = 'block';
        // 清空密码输入框
        passwordInput.value = '';
        document.getElementsByClassName("input-password")[0].style.display = "none";
    } else {
        //alert('密码错误，请重新输入！');
        Swal.fire({
            position: 'center', //定位 左上角
            icon: 'error',
            title: '密码错误！',
            showConfirmButton: false,
            timer: 1500
        });
    }
}

// 添加点击事件监听器
confirmButton.addEventListener('click', validatePassword);

// 添加键盘事件监听器
passwordInput.addEventListener('keydown', (event) => {
    if (event.key === 'Enter') {
        validatePassword();
    }
});
</script>
</html>